import App from './App'
import uviewPlus from 'uview-plus'
import { createSSRApp } from 'vue'
import Store from './store'
import api from './static/js/util'
import request from './request/api'

export function createApp() {
  const app = createSSRApp(App)
  
  // 接口
  app.config.globalProperties.$http = request
  // 方法
  app.config.globalProperties.$api = api
  app.use(Store).use(uviewPlus)
  return {
    app
  }
}
